using System.Collections.Generic;

namespace dbm2.Model
{
    public class View
    {
        private string defenition;
        private List<Field> fields;

        public string Name { get; private set; }
        public string Schema { get; private set; }
        

        public View(string name, string schemaName = null)
        {
            Name = name;
            Schema = schemaName;
        }

        public void SetDefinition(string def)
        {
            this.defenition = def;
        }

        public string GetDefenition()
        {
            return defenition;
        }
    }
}